import requests
from bs4 import BeautifulSoup

req = requests.get("https://www.baidu.com")
# print(req.text)
print(req.status_code)